<?php

/**
 * 商城后台
 */


//收货地址
$router->post('user/address/index', 'UserController@getAddressIndex'); //用户地址
$router->post('user/address/default', 'UserController@setAddressDefault'); //用户地址默认
//标签
$router->post('user/tag/list', 'UtagController@getList');
$router->post('user/tag/add', 'UtagController@add');
$router->post('user/tag/del', 'UtagController@del');
//会员等级
$router->post('level/index', 'LevelController@getIndex');
$router->post('level/one', 'LevelController@getOne');
$router->post('level/modify', 'LevelController@modify');
$router->post('level/del', 'LevelController@setDel');
//会员劵
$router->post('coupon/index', 'CouponController@getIndex');
$router->post('coupon/tmp/index', 'CouponController@tmpIndex');
$router->post('coupon/tmp/option', 'CouponController@tmpOption');
$router->post('coupon/tmp/add', 'CouponController@tmpAdd');
$router->post('coupon/tmp/del', 'CouponController@tmpDel');
$router->post('coupon/switch/one', 'CouponController@getSwitch');
$router->post('coupon/switch/modify', 'CouponController@setSwitch');
//商品分类
$router->post('goods/cate/index', 'GoodsCateController@getIndex');
$router->post('goods/cate/option', 'GoodsCateController@getOption');
$router->post('goods/cate/one', 'GoodsCateController@getOne');
$router->post('goods/cate/save', 'GoodsCateController@save');
$router->post('goods/cate/del', 'GoodsCateController@setDel');
$router->post('goods/cate/out', 'GoodsCateController@getOut');
//商品
$router->post('goods/index', 'GoodsController@getIndex');
$router->post('goods/batchStatus', 'GoodsController@batchStatus');
$router->post('goods/batchDel', 'GoodsController@batchDel');
$router->get('goods/getCategories', 'GoodsController@getCategories');
$router->post('goods/one', 'GoodsController@getOne');
$router->post('goods/cateSel', 'GoodsController@getCateList');
$router->post('goods/add', 'GoodsController@addOne');
$router->post('goods/modify', 'GoodsController@modify');
$router->post('goods/del', 'GoodsController@setDel');
$router->post('goods/more/upload', 'GoodsController@moreUpload');
$router->post('goods/more/del', 'GoodsController@moreDel');
$router->post('goods/sku/add', 'GoodsController@skuAdd');
$router->post('goods/sku/modify', 'GoodsController@skuModify');
$router->post('goods/sku/del', 'GoodsController@skuDel');
$router->post('goods/out', 'GoodsController@getOut');
$router->post('goods/shelf', 'GoodsController@setShelf');
$router->post('goods/sku/list', 'GoodsController@skuList');
//关键词
$router->post('goods/word/list', 'GoodsController@getWordList');
//门店
$router->post('shop/index', 'ShopController@getIndex');
$router->post('shop/one', 'ShopController@getOne');
$router->post('shop/modify', 'ShopController@modify');
$router->post('shop/del', 'ShopController@setDel');
$router->post('shop/addresstomap', 'ShopController@addressToMap');
//品牌
$router->post('brand/index', 'BrandController@getIndex');
$router->post('brand/add', 'BrandController@add');
$router->post('brand/one', 'BrandController@getOne');
$router->post('brand/del', 'BrandController@setDel');
$router->post('brand/kg/modify', 'BrandController@kgModify');
$router->post('brand/type/sort', 'BrandController@typeSort');
$router->post('brand/sort', 'BrandController@sort');
$router->post('brand/sort/modify', 'BrandController@sortModify');
//图片上传
$router->post('image/upload', 'ImageController@upload');
$router->post('image/list', 'ImageController@getList');
$router->post('video/upload', 'ImageController@uploadVideo');
//购物车
$router->post('cart/index', 'IndexController@getCartIndex');
//订单
$router->post('order/index', 'OrderController@getIndex');
$router->post('order/one', 'OrderController@getOne');
$router->post('order/auth', 'OrderController@setAuth');
$router->post('order/updateRemark', 'OrderController@updateRemark'); //修改备注
$router->post('order/send', 'OrderController@send');
$router->post('order/batch/send', 'OrderController@batchSend');
$router->post('order/tuihuo/auth', 'OrderController@tuiAuth'); //退货审核
$router->post('order/out', 'OrderController@getOut');
//接口文档
$router->post('doc/leftMenu', 'DocController@leftMenu');
$router->post('doc/one', 'DocController@getOne');
$router->post('doc/add', 'DocController@add');

/**
 * 二期
 */
//发现话题
$router->post('find/index', 'FindController@getIndex');
$router->post('find/auth', 'FindController@setAuth');
$router->post('find/one', 'FindController@getOne');
$router->post('find/del', 'FindController@setDel');
$router->post('find/cate/list', 'FindController@cateList');
$router->post('find/cate/modify', 'FindController@cateModify');
$router->post('find/cate/del', 'FindController@cateDel');
$router->post('find/top/modify', 'FindController@setTop');
$router->post('find/switch/one', 'FindController@switchOne');
$router->post('find/switch/modify', 'FindController@switchModify');